#!/usr/bin/env python
# -*- coding: utf-8 -*-

import requests
import json

# API接口的URL
def gteT1():
    url = 'http://47.101.193.254:8083/build'
    # url = 'http://47.101.193.254:8083/'

    # 设置请求头
    headers = {
        "Content-Type": "application/json"
    }

    response = requests.get(url, headers=headers)

    # 检查响应状态码
    if response.status_code == 200:
        # 解析响应数据

        # 打印预测结果
        print("this is ok!")
    else:
        print("Error:", response.status_code, response.text)


if __name__ == '__main__':
    gteT1()
